package com.chatdating.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chatdating.entity.Comment;

import java.util.List;

public interface CommentService extends IService<Comment> {
    List<Comment> getCommentsByPostId(Long postId);
    Comment addComment(Comment comment);

    Page<Comment> pageCommentsByPostId(Page<Comment> page, Long postId);

    Integer getCommentCountByPostId(Long id);

    void delComment(Integer id);

    List<Comment> getCommentList(Integer id);
}
